package com.zch.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.dao.CollegemessageMapper;
import com.zch.dao.model.Collegemessage;
import com.zch.dao.model.CollegemessageExample;
import com.zch.daoEx.CollegemessageMapperEx;
import com.zch.daoEx.model.CollegemessageEx;

@Service
public class CollegemessageService {
	@Autowired
	private CollegemessageMapper collegemessageMapper;
    @Autowired
    private CollegemessageMapperEx collegemessageMapperEx;

	public int countByExample(CollegemessageExample example) {
		return this.collegemessageMapper.countByExample(example);
	}

	public Collegemessage selectByPrimaryKey(String id) {
		return this.collegemessageMapper.selectByPrimaryKey(id);
	}

	public List<Collegemessage> selectByExample(CollegemessageExample example) {
		return this.collegemessageMapper.selectByExample(example);
	}


	public int deleteByPrimaryKey(String id) {
		return this.collegemessageMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(Collegemessage record) {
		return this.collegemessageMapper.updateByPrimaryKeySelective(record);
	}


	public int updateByPrimaryKey(Collegemessage record) {
		return this.collegemessageMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(CollegemessageExample example) {
		return this.collegemessageMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(Collegemessage record, CollegemessageExample example) {
		return this.collegemessageMapper.updateByExampleSelective(record, example);
	}


	public int updateByExample(Collegemessage record, CollegemessageExample example) {
		return this.collegemessageMapper.updateByExample(record, example);
	}

	public int insert(Collegemessage record) {
		return this.collegemessageMapper.insert(record);
	}

	public int insertSelective(Collegemessage record) {
		return this.collegemessageMapper.insertSelective(record);
	}

    public List<CollegemessageEx> selectList(Map<String, Object> map) {
        return this.collegemessageMapperEx.selectList(map);
    }

    public List<CollegemessageEx> selectListAppList(Map<String, Object> map) {
        return this.collegemessageMapperEx.selectAppList(map);
    }

    public CollegemessageEx selectAppDetailList(Map<String, Object> map) {
        return this.collegemessageMapperEx.selectAllDetailList(map);
    }

    public List<CollegemessageEx> selectMyList(Map<String, Object> map) {
        return this.collegemessageMapperEx.selectMyList(map);
    }

}
